home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 August / The Sunday Times - The Month 2004-08.iso / pc / engine / shell / shell.swf / scripts / frame_3 / DoAction_2.as next >
Encoding:
Text File  |  2004-07-06  |  1.2 KB  |  32 lines

  1. Tardis.debug = {clickMainNav:[],clickMainNavDebug:true,loadModules:[],loadModulesDebug:false,monitorTracking:[],monitorTrackingDebug:false,monitorLogSize:[],monitorLogSizeDebug:false,overlayTracking:[],overlayTrackingDebug:false,monitorSO:[],monitorSODebug:false,addProcess:function(strProcess, strTraceStatement)
  2. {
  3.    if(this[strProcess + "Debug"] == undefined)
  4.    {
  5.       trace("!!! The process you are trying to monitor (" + strProcess + ") is not setup !!!");
  6.       return undefined;
  7.    }
  8.    this[strProcess].push(strTraceStatement);
  9. },showProcessPath:function(strProcess)
  10. {
  11.    if(this[strProcess + "Debug"])
  12.    {
  13.       trace("");
  14.       trace("-----------------------------------------------------------------<");
  15.       trace("Start of " + strProcess);
  16.       trace("------------------------------------");
  17.       var i = 0;
  18.       while(i < this[strProcess].length)
  19.       {
  20.          trace(this[strProcess][i]);
  21.          i++;
  22.       }
  23.       trace("------------------------------------");
  24.       trace("End of " + strProcess);
  25.       trace("----------------------------------------------------------------->");
  26.    }
  27. },clearProcessPath:function(strProcess)
  28. {
  29.    delete this[strProcess];
  30.    this[strProcess] = new Array();
  31. }};
  32.